<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mobile_serial')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-mobile_serial" class="form-control" name="row[mobile_serial]" type="number" value="{$row.mobile_serial|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ip')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ip" class="form-control" name="row[ip]" type="text" value="{$row.ip|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('备注')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-remark" class="form-control" name="row[remark]" type="text" value="{$row.remark|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('平台链接')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-link" class="form-control" name="row[link]" type="text" value="{$row.link|htmlentities}" placeholder="若没有可留空">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('链接名字')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-link_name" class="form-control" name="row[link_name]" type="text" value="{$row.link_name|htmlentities}" placeholder="若没有可留空, 有则填数字即可">
            <p class="text-red">填写平台链接名字即可</p>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    
    <div class="form-group {:$auth->check('device/setting')?'':'hide'}">
        <label class="control-label col-xs-12 col-sm-2">{:__('负责人')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-admin_id" class="form-control selectpage" data-source='{$admin}'  name="row[admin_id]" type="text" value="{$row.admin_id|htmlentities}">
        </div>
    </div>
   
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
